package com.hyk.feign;

import com.hyk.config.feign.OAuth2FeignConfig;
import com.hyk.dto.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(name = "member-service",
        configuration = OAuth2FeignConfig.class,
        path = "/users")
public interface UserServiceFeign {

    @GetMapping("/basic/users")
    Map<Long,UserDto> getBasicUsers(@RequestParam(value = "ids",required = false) List<Long> ids,
                                    @RequestParam(value = "mobile",required = false) String mobile,
                                    @RequestParam(value = "username",required = false) String username);

}
